package pub.cleangao.memm.annotation;

import org.springframework.context.annotation.Import;
import pub.cleangao.memm.registry.RpcConfigProperties;
import pub.cleangao.memm.spring.*;

import java.lang.annotation.*;


/**
 * 标记当前应用是RPC服务的提供点
 */
@Target({ElementType.TYPE, ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
@Import({RpcServiceRegistrar.class,
        ExportLocalServices.class,
        RpcServerStarter.class,
        RpcConfigProperties.class,
        AfterApplicationStart.class})
@Documented
public @interface RpcServeNode {

    String[] packageScan() default {};

}
